﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace _2301MVCDemo.Controllers
{
    public class HTMLHelperController : Controller
    {
        // GET: HTMLHelper
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ChuanZhi(string name,int? age)
        {
            ViewBag.name = name;  
            ViewBag.age = age;
            return View("Index");
        }
    }
}